package lab02.test37;

public class StudentDemo {
    public static void main(String[] args) {
        Undergraduate zhangsan=new Undergraduate();
        zhangsan.name="张三";
        zhangsan.degree="本科生";
        zhangsan.computer=76;
        zhangsan.english=69;
        zhangsan.math=70;

        Graduate lisi=new Graduate();
        lisi.name="李四";
        lisi.degree="研究生";
        lisi.computer=73;
        lisi.english=83;
        lisi.math=72;


        System.out.println("姓名"+"\t\t"+" 学位"+"\t\t"+"英语"+"\t\t\t"+"数学"+"\t\t\t"+"计算机"+"\t\t\t"+"  备注");
        System.out.println("-----------------------------------------------------------------------");
        System.out.printf( zhangsan.toString());
        zhangsan.underGrade();

        System.out.printf(lisi.toString());
        lisi.grade();
    }
}
